package com.lc.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lc.bean.StoreDetail;
import com.lc.mapper.StoreDetailMapper;
import com.lc.service.StoreDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StoreDetailServiceImpl implements StoreDetailService {
    @Autowired
    StoreDetailMapper storeDetailMapper;

    @Override
    public PageInfo list(Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        return new PageInfo<StoreDetail>(storeDetailMapper.list());
    }
}
